package com.ztsjglxt.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ztsjglxt.core.IMenu;

@Controller
@RequestMapping("/main")
public class Test {
	
	@Autowired
	private IMenu menuservice;
	    @RequestMapping("/index")
	   public String index(HttpServletRequest request,HttpServletResponse response) {
	    	List<Map<String, Object>> map = menuservice.selectlist(new HashMap<String,Object>());
	       return "main/index";
		}
	    
	    @RequestMapping("/main")
		   public String home(HttpServletRequest request,HttpServletResponse response) {
		    	System.out.println(123456789);
		       return "main/main";
			}
}
